<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2015/12/22
 * Time: 12:54
 */

namespace BaseClass\Test\Controllers\Article;
use Illuminate\Routing\Controller;
use BaseClass\Component\Article\ArticleLabel;


class LabelTest extends Controller
{
    public function sLabel()
    {
        $query_limit['start'] = 0;
        $query_limit['num'] = 3;
        $articleLabel = new ArticleLabel(null);
        $data = $articleLabel->select($query_limit);
        dump($data);
    }
    public function aLabel()
    {
        $info_array['label_name'] = 'java';
        $info_array['label_create_date'] = date("Y-m-d H:i:s");
        $articleLabel = new ArticleLabel(null);
        $articleLabel->add($info_array);
    }
    public function uLabel()
    {
        $articleLabel = new ArticleLabel(2);
        $info_array['label_name'] = 'python';
        $articleLabel->update($info_array);
    }
    public function aAticleLabel()
    {
        $articleLabel = new ArticleLabel(2);
        $article_id = 1;
        $articleLabel->aAticleLabel($article_id);
    }
}